﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
    <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <script src="~/Scripts/jquery-1.7.1.min.js"></script>
    <script src="~/Scripts/jquery.signalR-1.1.0.min.js"></script>
    <script src="~/signalr/hubs"></script>
    <link href="~/Content/Site.css" rel="stylesheet" />
    @{
        try
        {
            MembershipUser currentUser = System.Web.Security.Membership.GetUser(true);
            System.Web.Security.Membership.UpdateUser(currentUser);
            //þetta updeitar LastActivityDate í hvert skipti sem notandi ráfar um síðuna.
        }
        catch
        {
            //ekkert gerist? - ef notandi er ekki innskráður
        }
        
    }
</head>
<body>
    <div class="container-narrow">

        <div class="masthead">
            <ul class="nav nav-pills pull-right">
                <li>@Html.ActionLink("Leikir í gangi", "Index", "ActiveGame")</li>
                <li>@Html.ActionLink("Stigatafla", "Index", "Scoreboard")</li>
                <li class="active">@Html.Partial("_LoginPartial")</li>

            </ul>
            <div id="theDiv">
                <a href="http://localhost:3136/">
                    <img src="http://www.dragonartz.net/wp-content/uploads/2009/07/Vector-Rainbow-in-the-Clouds-Prev-by-DragonArt.jpg" width="150" height="150" alt="logo" /></a>

                <div id="content">
                    <h1 class="muted">&nbsp; <!--Html.ActionLink("Gleðiland", "Index", "Home")--></h1>
                </div>
            </div>
        </div>

        <hr>
        @RenderBody()
        <div class="footer">
            <p>&copy; Gleðiland 2013</p>
        </div>
        <hr>
    </div>
    @RenderSection("scripts", required: false)
    <!-- /container -->
</body>
</html>
